#ifndef _MY_LIST_H
#define _MY_LIST_H

#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <pthread.h>
#include <stdio.h>

struct NodeData
{
	int a;
	int b;
};

struct MyListNode
{
	struct NodeData data;
	struct MyListNode *pstNext;
};

struct MyListHead
{
	int count;
	
	struct MyListNode *pstFirst;
};

struct MyListHead *CreateMyListHead();
struct MyListNode *CreateMyListNode(struct NodeData* pstNewData);
int DestroyMyListNode(struct MyListNode *pstNode);
int DestroyMyListHead(struct MyListHead *pstHead);



#endif
